package com.atguigu.spzx.model.myemun;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    PARAM_ERROR(400, "参数校验失败"),
    UNAUTHORIZED(401, "未授权访问"),
    BUSINESS_ERROR(403, "业务逻辑错误"),
    SYSTEM_ERROR(500, "系统异常");

    private final Integer code;
    private final String message;
    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    // 构造方法和getter...
}
